package com.store.webstore.service.impl;

import com.store.webstore.dao.UserMapper;
import com.store.webstore.entity.User;
import com.store.webstore.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LoginServiceImpl implements LoginService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserByUsername(String username) {
        return userMapper.findUserByUserName(username);
    }
}
